package com;

public class nc {
    public static void main(String[] args) {
        //byte,short,int,long
        byte a = 10;
        short b = 20;
        int c = 30;
        long d = 9999999L;//long类型后要加“L”
        //float,double
        float f = 4.2e-5F;
        /*float类型后要加“F”
         "e"/"E"科学计数法，前必有数后可正负但必须为整数*/
        double d1 = 0.123;
        //char
        char c1 = 'a';
        char c2 = 97;
        //boolean
        boolean b1 = true;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);
        System.out.println(f);
        System.out.println(d1);
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(b1);




    }
}
